home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1996 April
/
Macworld (1996-04).dmg
/
Educational Demos
/
Goldilocks Gamebook
/
Goldilocks.DIR
/
00536_Script_536
< prev
next >
Wrap
Text File
|
1995-11-20
|
913b
|
36 lines
-- Go Story
on mouseDown
global MC
puppetSound "Click.AIF"
put mouseCast() into MC
repeat while stillDown() = 1
if mouseCast() = MC then
set the castNum of sprite (the ClickOn) to MC +1
updateStage
next repeat
end if
if (mouseCast() <> MC + 1) then set the castNum of sprite (the ClickOn) to MC
updateStage
end repeat
end
on mouseUp
global MC,pageCount
set the castNum of sprite (the clickOn) to MC
updateStage
if the mouseCast = MC or the mouseCast = MC + 1 then
sound stop 1
sound stop 2
set the visible of sprite 9 to FALSE
set the visible of sprite 10 to FALSE
put pageCount & ".DIR" into currentPage
puppetSprite 2, FALSE
puppetSprite 3, FALSE
puppetSprite 4, FALSE
puppetSprite 5, FALSE
puppetSprite 6, FALSE
go to "Intro"
end if
end